﻿using FastSocket.Server.Messaging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SocketTool.Com.UDP.Server
{
    public class UDPServerMessage : IMessage
    {
        /// <summary>
        /// payload
        /// </summary>
        public readonly byte[] Payload;

        /// <summary>
        /// new
        /// </summary>
        /// <param name="payload"></param>
        public UDPServerMessage(byte[] payload)
        {
            if (payload == null) throw new ArgumentNullException("payload");
            this.Payload = payload;
        }
    }
}
